from ..common import *

def set_code_to_viewpy(code: str, view_path: str)->None:
    """将视图代码写入视图文件"""
    append_file_whole(view_path, code+'\n') # 写入视图
